﻿
@model SysTaskEntity
@{
    ViewData["Title"] = "COMM_SysTask 编辑";
    Layout = "../Shared/_Layout.cshtml";
}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content text-center p-md">
                    <form id="dynamic-form" asp-action="Edit" method="post" class="form-horizontal" role="form">
                        <div asp-validation-summary="@ValidationSummary.All" class="text-danger"></div>
                        <input type="hidden" asp-for="TaskId" />
                        <div class="form-group">
                            <label asp-for="TaskName" class="col-md-3 control-label text-right">任务名称</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon">*</span>
                                    <input asp-for="TaskName" class="form-control" validate="{required:true ,maxlength:50   }" />
                                </div>
                                <span asp-validation-for="TaskName" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="ExcuteTime" class="col-md-3 control-label text-right">执行时间</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon">*</span>
                                    <input asp-for="ExcuteTime" class="form-control" validate="{required:true ,IsDecimal:true ,maxlength:18   }" />
                                </div>
                                <span asp-validation-for="ExcuteTime" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">

                            <label asp-for="StartDate" class="col-md-3 control-label text-right">开始时间</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon">*</span>
                                    <input id="StartDate" name="StartDate" readonly="readonly" class="form-control datetimepicker" type="text" validate="{required:true ,IsDate:true }" />
                                </div>
                                <span asp-validation-for="StartDate" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">

                            <label asp-for="EndDate" class="col-md-3 control-label text-right">结束时间</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon"></span>
                                    <input id="EndDate" name="EndDate" readonly="readonly" class="form-control datetimepicker" type="text" validate="{required:false ,IsDate:true }" />
                                </div>
                                <span asp-validation-for="EndDate" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">

                            <label class="col-md-3 control-label text-right"></label>
                            <div class="col-md-9 text-left">
                                <div class="i-checks ">
                                    <label asp-for="IsOpen"> <input tabindex="5" asp-for="IsOpen" type="checkbox"> 是否开启 </label>
                                </div>
                            </div>

                        </div>
                        <div class="form-group">

                            <label class="col-md-3 control-label text-right"></label>
                            <div class="col-md-9 text-left">
                                <div class="i-checks ">
                                    <label asp-for="IsSuccess"> <input tabindex="6" asp-for="IsSuccess" type="checkbox"> 是否成功 </label>
                                </div>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="Message" class="col-md-3 control-label text-right">结果</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon"></span>
                                    <input asp-for="Message" class="form-control" validate="{required:false    }" />
                                </div>
                                <span asp-validation-for="Message" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="UserNo" class="col-md-3 control-label text-right">所属用户</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon"></span>
                                    <input asp-for="UserNo" class="form-control" validate="{required:false ,maxlength:50   }" />
                                </div>
                                <span asp-validation-for="UserNo" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <label asp-for="UserToken" class="col-md-3 control-label text-right">会话</label>
                            <div class="col-md-9  text-left">
                                <div class="input-group m-b">
                                    <span class="input-group-addon"></span>
                                    <input asp-for="UserToken" class="form-control" validate="{required:false ,maxlength:50   }" />
                                </div>
                                <span asp-validation-for="UserToken" class="text-danger"></span>
                            </div>

                        </div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <a class="btn btn-white" asp-action="index">返  回</a>
                                <button class="btn ladda-button btn-primary" type="submit" data-style='zoom-in'>保存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

@section scripts{
    <script type="text/javascript">
        $(function () {
            $(document).ready(function () {
                $(".form-horizontal").CustomForm({
                    isValidate: true,
                    isTable: false
                });
                $(".form-horizontal").submit(function () {
                    if (!$(".form-horizontal").valid()) {
                        return false;
                    }
                });
            });
        });
    </script>
}
